package com.ruoyi.degree.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论管理对象 biz_comments
 * 
 * @author Polly
 * @date 2025-08-18
 */
public class BizComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 内容id */
    @Excel(name = "内容id")
    private Long objectId;

    /** 内容title */
    @Excel(name = "内容title")
    private String objectTitle;

    /** 父id */
    @Excel(name = "父id")
    private Long parentId;

    /** 被回复人昵称 */
    @Excel(name = "被回复人昵称")
    private String pNickName;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 内容 */
    @Excel(name = "标题")
    private String title;

    /** 图片（只有评论可以发） */
    @Excel(name = "图片", readConverterExp = "只=有评论可以发")
    private String pics;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    /** 微信用户id */
    @Excel(name = "微信用户id")
    private Long wechatUserId;

    /** 类型 1-评论 2-回复楼主 */
    @Excel(name = "类型 1-评论 2-回复楼主")
    private String type;

    private String avatarUrl;

    private String[] picsArray;


    public String[] getPicsArray() {
        return picsArray;
    }

    public void setPicsArray(String[] picsArray) {
        this.picsArray = picsArray;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    public void setObjectId(Long objectId) 
    {
        this.objectId = objectId;
    }

    public Long getObjectId() 
    {
        return objectId;
    }

    public void setObjectTitle(String objectTitle) 
    {
        this.objectTitle = objectTitle;
    }

    public String getObjectTitle() 
    {
        return objectTitle;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setpNickName(String pNickName) 
    {
        this.pNickName = pNickName;
    }

    public String getpNickName() 
    {
        return pNickName;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setPics(String pics) 
    {
        this.pics = pics;
    }

    public String getPics() 
    {
        return pics;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }

    public void setWechatUserId(Long wechatUserId) 
    {
        this.wechatUserId = wechatUserId;
    }

    public Long getWechatUserId() 
    {
        return wechatUserId;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nickName", getNickName())
            .append("objectId", getObjectId())
            .append("objectTitle", getObjectTitle())
            .append("parentId", getParentId())
            .append("pNickName", getpNickName())
            .append("content", getContent())
            .append("title", getTitle())
            .append("pics", getPics())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("deletedAt", getDeletedAt())
            .append("wechatUserId", getWechatUserId())
            .append("type", getType())
            .toString();
    }
}
